﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using ItemStatistics.Models;


namespace ItemStatistics.ViewModels.ReciveInfoVMs
{
    public partial class ReciveInfoSearcher : BaseSearcher
    {
        public List<ComboSelectListItem> AllCustomers { get; set; }
        [Display(Name = "客户")]
        public Guid? CustomerId { get; set; }
        public List<ComboSelectListItem> AllGifts { get; set; }
        [Display(Name = "礼物")]
        public Guid? GiftId { get; set; }

        protected override void InitVM()
        {
            AllCustomers = DC.Set<Customer>().GetSelectListItems(Wtm, y => y.Name);
            AllGifts = DC.Set<Gift>().GetSelectListItems(Wtm, y => y.Name);
        }

    }
}
